define(['text!service/chagesdetail.html'],
	function(viewTemplate) {
		return Piece.View.extend({
			id: 'service_chagesdetail',
			render: function() {
				$(this.el).html(viewTemplate);
				Piece.View.prototype.render.call(this);
				return this;
			},
			onShow: function() {
				var windowHeight = $(window).height();
				var elTop = $("#chagesdetail").offset().top;
				var elHeight = windowHeight - elTop ;
				console.info(elHeight);
				$("#chagesdetail").css({
					"height": elHeight
				});
				
				new iScroll($("#chagesdetail")[0]);
			}
		}); //view define

	});